# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=perl-common-sense
pkgver=3.74
pkgrel=1
pkgdesc="Implements some sane defaults for Perl programs"
arch=('any')
groups=('perl-modules')
url="https://metacpan.org/release/common-sense"
license=('PerlArtistic' 'GPL')
depends=('perl')
options=('!emptydirs')
source=("https://www.cpan.org/authors/id/M/ML/MLEHMANN/common-sense-$pkgver.tar.gz")
sha256sums=('771f7d02abd1ded94d9e37d3f66e795c8d2026d04defbeb5b679ca058116bbf3')

build() {
  cd common-sense-$pkgver
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd common-sense-$pkgver
  make test
}

package() {
  cd common-sense-$pkgver
  make DESTDIR="$pkgdir" install
}
